package com.stox.ui.javafx.charting.model.plot;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.stox.dto.AbstractModel;

@Component("lineOverlayPlot")
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class LineOverlayPlot extends LinePlot {
	
	public LineOverlayPlot(AbstractModel model) {
		super(model);
	}
	
	@Override
	public double getHighest() {
		return getChart().getChartingView().getPrimaryChart().getFrontPlot().getHighest();
	}
	
	@Override
	public double getLowest() {
		return getChart().getChartingView().getPrimaryChart().getFrontPlot().getLowest();
	}

}
